/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fr.isen.web.webservicetemp.Service;

import fr.isen.web.webservicetemp.Entity.Data;

import fr.isen.web.webservicetemp.Entity.DataSample;
import java.util.Date;
import java.util.List;

/**
 *
 * @author isen
 */
public interface DataServiceInterface   {
    
    // Vars
    
    //
    public void addData(Data data);
    public void addDatas(List<Data> datas);
    public List<Data> getAllData();
    public DataSample getAllDataSample();
    public Boolean hasATwin(String location, Date date);
    public List<Data> getDataBetween(Date startDate, Date endDate);
    public List<String> getLocation();
    public List<Data> getDataView2D(String view,Date date, String location);
    public void deleteDataById(long id);
    public void deleteDatabase();
    public DataSample getAllDataSampleAverage();
    
    public DataSample dataToSample(List<Data> listData);
    
    public List<Data> averagePerLocation(List<Data> datas);
}

